package dev.ece.util.tools.ploy;

import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL20;

public class TextureCubeEdgePloy implements TexturePloy {

	private static final TextureCubeEdgePloy textureCubeEdgePloy = new TextureCubeEdgePloy();
	
	@Override
	public void beforeGlTexImage2D() {
		GL11.glTexParameterf(GL20.GL_TEXTURE_CUBE_MAP, GL11.GL_TEXTURE_MIN_FILTER,GL11.GL_NEAREST);
		GL11.glTexParameterf(GL20.GL_TEXTURE_CUBE_MAP, GL11.GL_TEXTURE_MAG_FILTER,GL11.GL_LINEAR);
		GL11.glTexParameterf(GL20.GL_TEXTURE_CUBE_MAP, GL11.GL_TEXTURE_WRAP_S, GL20.GL_CLAMP_TO_EDGE);
		GL11.glTexParameterf(GL20.GL_TEXTURE_CUBE_MAP, GL11.GL_TEXTURE_WRAP_T, GL20.GL_CLAMP_TO_EDGE);
		GL11.glTexParameterf(GL20.GL_TEXTURE_CUBE_MAP, GL20.GL_TEXTURE_WRAP_R, GL20.GL_CLAMP_TO_EDGE);
	}

	@Override
	public void afterGlTexImage2D() {
	}

	public static TextureCubeEdgePloy getInstance() {
		return textureCubeEdgePloy;
	}
	
}
